import request from '@/utils/request'

export default {

    //分页查询会员
    pageConsumer(current,limit) {
        return request({
            url: `/educonsumer/backstage/consumer/pageConsumer/${current}/${limit}`,
            method: 'get'
        })
    },

    //删除会员
    deleteConsumer(consumerId) {
        return request({
            url: `/educonsumer/backstage/consumer/deleteConsumer/${consumerId}`,
            method: 'delete'
        })
    },

    //添加会员
    addConsumer(consumer) {
        return request({
            url: `/educonsumer/backstage/consumer/addConsumer`,
            method: 'post',
            data:consumer
        })
    },

    //查询会员
    selectConsumerById(consumerId){
        return request({
            url: `/educonsumer/backstage/consumer/selectConsumerById/${consumerId}`,
            method: 'get'
        })
    },

    //修改会员
    updateConsumer(consumer){
        return request({
            url: `/educonsumer/backstage/consumer/updateConsumer`,
            method: 'post',
            data:consumer
        })
    },
    
}